package com.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.entity.AssetType;
import com.project.mapper.AssetTypeMapper;
import com.project.service.AssetTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lenovo
 * @description 针对表【t_zctype】的数据库操作Service实现
 * @createDate 2023-01-17 03:50:53
 */
@Service
public class AssetTypeServiceImpl extends ServiceImpl<AssetTypeMapper, AssetType> implements AssetTypeService {
    @Autowired
    private AssetTypeMapper assetTypeMapper;

    @Override
    public AssetType findById(String id) {
        return assetTypeMapper.findById(id);
    }

    @Override
    public AssetType findByName(String name) {
        return assetTypeMapper.findByName(name);
    }

    @Override
    public List<AssetType> getAll() {
        return assetTypeMapper.getAll();
    }

    @Override
    public Integer getCount() {
        return assetTypeMapper.getCount();
    }
}




